package com.seelyn.rhea.mvc.render.provider;

import com.seelyn.rhea.mvc.render.AbstractView;
import com.seelyn.rhea.mvc.render.Render;

import java.io.Serializable;

/**
 * @author linfeng
 * @since 2016/1/20
 */
public class RedirectView extends AbstractView<RedirectView> {
    private static final long serialVersionUID = 6944037535890891470L;

    private final String url;

    public RedirectView(String url) {
        super(null);
        this.url = url;
    }

    public String getUrl() {
        return url;
    }


    @SuppressWarnings("unchecked")
    @Override
    public Render<RedirectView> getRender() {
        return new RedirectRender();
    }
}
